home *** CD-ROM | disk | FTP | other *** search
- /*This is a REXX routine that demonstraights some of the scripting*/
- /*capabilites of JView. The REXX routine is run from JView. */
- /*You can drag this file onto JView, or open it using the JView */
- /*File Open dialog.*/
- /*This example is set up for a screen resolution of 1024 by 768*/
- /*Note that / is never used for division, only % which guarantees */
- /*an integer result. This example just moves the current image*/
- /* around the screen a few times*/
-
- Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
- Call SysLoadFuncs
- Screen_resolution_x = 1024
- Screen_resolution_y = 768
- rc = JVWGetImageInfo()
- PARSE VAR rc wide high depth colors position_x position_y window_w window_h crop_status crop_left crop_bottom crop_right crop_top
- horizontal = Screen_resolution_x - window_w
- vertical = Screen_resolution_y - window_h
- do 2
- JVWSizeWindow("move", "abs", horizontal % 2, vertical % 2)
- Call SysSleep 1
- JVWSizeWindow("move", "abs", "0", "0")
- Call SysSleep 1
- JVWSizeWindow("move", "abs", "0", vertical)
- Call SysSleep 1
- JVWSizeWindow("move", "abs", horizontal, vertical)
- Call SysSleep 1
- JVWSizeWindow("move", "abs", horizontal, "0")
- Call SysSleep 1
- JVWSizeWindow("move", "abs", "0", "0")
- Call SysSleep 1
- do vertical%3
- JVWSizeWindow("move", "relative", "0", "3")
- end
- do horizontal%3
- JVWSizeWindow("move", "relative", "3", "0")
- end
- do vertical%3
- JVWSizeWindow("move", "relative", "0", "-3")
- end
- do horizontal%3
- JVWSizeWindow("move", "relative", "-3", "0")
- end
- end
-